package com.timothy.android;

import com.timothy.android.handler.MyCrashHandler;
import android.app.Application;

public class MyApplication extends Application {
	
// 	public NoteEntry entry;
	
 	@Override
	public void onCreate() {
		super.onCreate();
//		String apiKey = "0fab7f9aa21f39cd2f027ecfe65dad67";
//		String secret = "87fc1c5e99bfa5b3";
//		// 获取到service
//		DoubanService myService = new DoubanService("我的小豆豆", apiKey,
//				secret);
//		myService.setAccessToken("1fa4e5be0f808a0b5eeeb13a2e819e21", "56a622c1138dbfce");
		MyCrashHandler handler = MyCrashHandler.getInstance();
		handler.init(getApplicationContext());
		Thread.setDefaultUncaughtExceptionHandler(handler);
	}
}
